package com.zhang.blog.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhang.blog.entity.Tag;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: TagMapper
 * @Auther: dell
 * @Date: 2021/10/28 10:04
 * @Description:
 */
@Repository
public interface TagMapper extends BaseMapper<Tag> {
    List<Tag> findTagsByArticleId(Long articleId);
    List<Long> findHotsTagIds(int limit);
    List<Tag> findTagsByTagIds(@Param("tagIds")List<Long> tagIds);
}
